package com.sinaapp.kltq.data;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by 丰小兄 on 2015/7/16.
 * Function: 天气数据类
 */
public class WeatherData {
    public Date date;                       // Update date( extra )
    public String error;                    // Error message( extra )
    public WeatherRealTime realTime;        // Real time data
    public WeatherEnvironment environment;  // Environment data
    public WeatherAlarm alarm;               // Alarm data
    public WeatherDay yesterday;            // Yester day data
    public List<WeatherDay> forecast;       // Five days forecast data
    public List<WeatherZhishu> zhishus;      // 指数

    public WeatherData() {
        realTime = new WeatherRealTime();
        environment = new WeatherEnvironment();
        alarm = new WeatherAlarm();
        yesterday = new WeatherDay();
        forecast = new ArrayList<>();
        zhishus = new ArrayList<>();
    }

    public String toString() {
        return "DinosaurWeather:(Date," + date + ")(error," + error + ")" + realTime + environment
                + alarm + yesterday + forecast + zhishus;
    }
}
